A bank of adjustable Gauge charts

These Gauge charts are adjustable and the center one can be animated by clicking the button below (it animates to a random value). The centerx and radius values are set explicitly so the sizes are fixed no matter what the size of the canvas is.



[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.effects.js"></script>
<script src="RGraph.gauge.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="500" height="250" style="border: 1px solid #ccc">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    gauge1 = new RGraph.Gauge({
        id: 'cvs',
        min:0,
        max: 10,
        value: 18,
        options: {
            title: 'Pressure',
            titleBottom: 'Pa',
            titleBottomColor: '#aaa',
            centerx: 125,
            radius: 110,
            adjustable: true,
            textAccessible: false
        }
    }).draw();

    gauge2 = new RGraph.Gauge({
        id: 'cvs',
        min:0,
        max: 100,
        value: 78,
        options: {
            centerx: 360,
            radius:110,
            adjustable: true,
            title: 'Volume',
            titleBottomColor: '#aaa',
            textAccessible: false
        }
    }).draw();

    gauge3 = new RGraph.Gauge({
        id: 'cvs',
        min:0,
        max: 100,
        value: 78,
        options: {
            centerx: 600,
            radius:110,
            adjustable: true,
            title: 'Flow rate',
            titleBottomColor: '#aaa',
            textAccessible: false
        }
    }).draw();
</script>